package com.hzy.pms.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;
import java.util.List;

/**
 * 商品分类视图对象 pms_product_category
 *
 * @author zengxin
 * @date 2023-10-17
 */
@Data
@ExcelIgnoreUnannotated
public class ProductCategoryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 上级类目
     */
    @ExcelProperty(value = "上级类目")
    private Long parentId;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String name;

    /**
     * 分类级别
     */
    @ExcelProperty(value = "分类级别")
    private Integer level;

    /**
     * 显示状态
     */
    @ExcelProperty(value = "显示状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_show_status")
    private Integer showStatus;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Integer sort;

    /**
     * 图标
     */
    @ExcelProperty(value = "图标")
    private String icon;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @ExcelProperty(value = "修改人")
    private String updateBy;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    private Date updateTime;


    private List<ProductVo> productList;

}
